package com.yanqu.road.logic.bussiness.activity;

import java.util.List;
import java.util.Map;

import com.yanqu.road.dao.impl.activity.pawnshop.*;
import com.yanqu.road.entity.activity.pawnshop.*;

public class PawnshopBussiness {

	public static List<ConfPawnshop> getConfPawnshopList(int activityId) {
		return new ConfPawnshopDaoImpl().getConfPawnshopList(activityId);
	}

	public static List<ConfPawnshopStaff> getConfPawnshopStaffList(int activityId) {
		return new ConfPawnshopDaoImpl().getConfPawnshopStaffList(activityId);
	}

	public static List<ConfPawnshopItem> getConfPawnshopItemList(int activityId) {
		return new ConfPawnshopDaoImpl().getConfPawnshopItemList(activityId);
	}

	public static List<ConfPawnshopItemLv> getConfPawnshopItemLvList(int activityId) {
		return new ConfPawnshopDaoImpl().getConfPawnshopItemLvList(activityId);
	}

	public static Map<Integer, ConfPawnshopEvent> getConfPawnshopEventMap(int activityId) {
		return new ConfPawnshopDaoImpl().getConfPawnshopEventMap(activityId);
	}

	///////////////////////////////////////////////////////////////////////////////////////
	public static UserPawnshop getUserPawnshop(long userId, int activityId) {
		return new UserPawnshopDaoImpl().getUserPawnshop(userId, activityId);
	}

	public static boolean addUserPawnshop(UserPawnshop data) {
		return new UserPawnshopDaoImpl().add(data);
	}

	public static boolean updateUserPawnshop(UserPawnshop data) {
		return new UserPawnshopDaoImpl().update(data);
	}

	public static UserPawnshopEvent getUserPawnshopEvent(long userId, int activityId) {
		return new UserPawnshopEventDaoImpl().getUserPawnshopEvent(userId, activityId);
	}

	public static boolean addUserPawnshopEvent(UserPawnshopEvent data) {
		return new UserPawnshopEventDaoImpl().add(data);
	}

	public static boolean updateUserPawnshopEvent(UserPawnshopEvent data) {
		return new UserPawnshopEventDaoImpl().update(data);
	}

	public static Map<Long, UserPawnshopItem> getUserPawnshopItemMap(long userId, int activityId) {
		return new UserPawnshopItemDaoImpl().getUserPawnshopItem(userId, activityId);
	}

	public static boolean addUserPawnshopItem(UserPawnshopItem data) {
		return new UserPawnshopItemDaoImpl().add(data);
	}

	public static boolean updateUserPawnshopItem(UserPawnshopItem data) {
		return new UserPawnshopItemDaoImpl().update(data);
	}

	public static Map<Long, UserPawnshopNotify> getUserPawnshopNotifyMap(long userId, int activityId) {
		return new UserPawnshopNotifyDaoImpl().getUserPawnshopNotify(userId, activityId);
	}

	public static boolean addUserPawnshopNotify(UserPawnshopNotify data) {
		return new UserPawnshopNotifyDaoImpl().add(data);
	}

	public static boolean updateUserPawnshopNotify(UserPawnshopNotify data) {
		return new UserPawnshopNotifyDaoImpl().update(data);
	}

	public static long getMaxUserPawnshopNotifyId(long userId, int activityId) {
		return new UserPawnshopNotifyDaoImpl().getMaxUserPawnshopNotifyId(userId, activityId);
	}
}
